#include "thread.h"
int Thread::num=0;
QMutex Thread::mutex;
#include<QMutexLocker>
Thread::Thread()
{

}

void Thread::run()
{
    for(int i=0;i<50000;i++)
    {
        QMutexLocker locker(&mutex);
//        mutex.lock();
        num++;
//        mutex.unlock();
    }

}
